/**
 * file
 */
package com.tdkj.action.front.member.spaceManagement;

import java.util.List;

import javax.annotation.Resource;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.tdkj.action.BaseAction;
import com.tdkj.model.enterprisezone.BeanEnterprise;
import com.tdkj.model.enterprisezone.BeanEnterpriseZone;
import com.tdkj.model.enterprisezone.BeanEnterpriseZoneComment;
import com.tdkj.model.user.BeanUser;
import com.tdkj.service.enterprisezone.IBeanEnterpriseZoneCommentService;
import com.tdkj.util.PublicConfing;

/**

 * FileName:     MessageBoardManagement.java

 * @Description: TODO留言板管理

 * All rights Reserved, Designed By ZTE-ITS

 * Copyright:    Copyright(C) 2010-2011

 * Company       天成科技有限公司

 * @author:    李兴建

 * @version    V1.0 

 * Createdate:         2012-5-27 上午11:50:37

 *

 * Modification  History:

 * Date         Author        Version        Discription

 * -----------------------------------------------------------------------------------

 * 2012-5-27       李兴建          1.0             1.0

 * Why & What is modified: <修改原因描述>

 */
public class MessageBoardManagementAction extends BaseAction {
	
	private BeanUser user; //当前登陆用户
	private BeanEnterpriseZone zone;
	private List<BeanEnterpriseZoneComment> commentList;
	private IBeanEnterpriseZoneCommentService commentService;
	
	@Override
	public String execute(){
		user = (BeanUser) ActionContext.getContext().getSession().get(PublicConfing.MEMBER_MEMBWE_OBJ_STRING_CONFIG);
		zone = user.getEnterpriseZone();
		commentList = commentService.findByProperty("enterpriseZone", zone, BeanEnterpriseZoneComment.class);
		return this.SUCCESS;
	}

	public List<BeanEnterpriseZoneComment> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<BeanEnterpriseZoneComment> commentList) {
		this.commentList = commentList;
	}

	@Resource
	public void setCommentService(IBeanEnterpriseZoneCommentService commentService) {
		this.commentService = commentService;
	}
	
	
}
